{%include file="m.index.header.tpl.php"%}
<!--头部 end-->
<!--主体部分-->
<div class="container" style="margin-top:70px;">
     <div class="row row_margin">
     <table class="table table-bordered  text-center">
        <tr>
           <td>获奖名称</td>
           <td>{%$data.achieve_name%}</td>        
        </tr>
		{%if $type eq 6 %}
         <tr>
           <td>出版社</td>
           <td>{%$data.achieve_publish%}</td>        
        </tr>
        
        <tr>
           <td>书号</td>
           <td>{%$data.achieve_bookno%}</td>        
        </tr>
        <tr>
           <td>所在页</td>
           <td>{%$data.achieve_page%}</td>        
        </tr>
        {%/if%}
        {%if $type neq 6 %}
        <tr>
           <td>主办单位</td>
           <td>{%$data.achieve_unit%}</td>        
        </tr>
		{%if $type neq 7%}
        <tr>
           <td>获奖名次</td>
           <td>{%$data.achieve_rank%}</td>        
        </tr>
		{%else%}
        <tr>
           <td>第一指导老师：</td>
           <td>{%$data.achieve_teach%}</td>        
        </tr>
        <tr>
           <td>本人名次</td>
           <td>{%$data.achieve_trank%}</td>        
        </tr>
		{%/if%}
        {%/if%}
		<tr>
           <td>获奖级别</td>
           <td>{%$data.achieve_lv%}</td>        
        </tr>
		<tr>
           <td>{%if $type eq 6%}发表者{%else%}获奖人{%/if%}</td>
           <td>{%$data.achieve_owner%}</td>        
        </tr>
		<tr>
           <td>{%if $type eq 6%}发表日期{%else%}获奖日期{%/if%}</td>
           <td>{%$data.achieve_time%}</td>        
        </tr>
		{%if $type eq 5 %}
		<tr>
           <td>第一指导老师</td>
           <td>{%$data.achieve_teach%}</td>        
        </tr>
		<tr>
           <td>其他指导老师</td>
           <td>{%$data.achieve_teachers%}</td>        
        </tr>
		{%/if%}
		<tr>
           <td>备注</td>
           <td>{%$data.achieve_remark%}</td>        
        </tr>
		<tr>
           <td>附件：</td>
           <td>
				<a href="index.php?a=achieve.file&achieve_id={%$data.achieve_id%}&fname={%$data.achieve_file%}">查看附件</a>
		   </td>        
        </tr>
     </table>
   
     </div><!--row  end-->
        
      <!--  <div class="row row_margin" > 
        <button type="button" class="btn btn-primary btn-lg btn-block btn-primary2">确定</button>
        </div>-->
</div><!--container  end-->
<!--主体部分  end-->
<!--底部-->
{%include file="m.index.footer.tpl.php"%}
<script>
    $(function() {
        $( "#datepicker" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true,
            yearRange:"1930:2010"
        });
        $( "#datepicker1" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true
        });
        $( "#datepicker2" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true
        });
        $( "#datepicker3" ).datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            changeMonth: true,
            changeYear: true
        });
    });
    //上传图片
    $(function(){
        var imgurl=[];
        function createfile(){
            $('#updiv').append("<input type='file'  name='photos' class='upfile'>");
        }
        function showimg(url){
            var img='<img src="'+url+'"/>';
            $('#imglist').append(img);
        }
        function addfile(){
            showimg($(this).val());
            $(this).hide();
            createfile();
            $('.upfile').bind('change',addfile);
        }
        $('.upfile').bind('change',addfile);
    })
</script>
